const controllers = require('../controllers');

const adminController = controllers.admin;

module.exports = (Admin) => {
  Admin.initDictionaryPage = adminController.dictionary.initPage;
  Admin.getDictionaryList = adminController.dictionary.getList;
  Admin.saveDictionaryDetail = adminController.dictionary.saveDetail;
  Admin.deleteDictionaryDetail = adminController.dictionary.deleteDetail;

  Admin.initRolePage = adminController.role.initPage;
  Admin.getRoleList = adminController.role.getList;
  Admin.saveRoleDetail = adminController.role.saveDetail;
  Admin.deleteRoleDetail = adminController.role.deleteDetail;

  Admin.initUserPage = adminController.user.initPage;
  Admin.getUserList = adminController.user.getList;
  Admin.saveUserDetail = adminController.user.saveDetail;

  Admin.getTemplateList = adminController.template.getList;
  Admin.saveTemplateDetail = adminController.template.saveDetail;
  Admin.deleteTemplateDetail = adminController.template.deleteDatail;
};
